<?php

/*
 * This file is create for storing name of table, and field.
 * 
 */

if (!function_exists('table')) {

    function table($key) {
        // Tables' name
        $table['tblOne'] = 'table_name';
        $table['tblTwo'] = 'table_name_a';
        $table['tblThree'] = 'tabl_name_b';
        if (array_key_exists($key, $table)) {
            return $table[$key];
        } else {
            return NULL;
        }
    }

}

if (!function_exists('field')) {

    function field($key) {
        // Fields' name
        $field['columOne'] = 'col_one';
        $field['columTwo'] = 'col_two';
        $field['columThree'] = 'col_three';

        if (array_key_exists($key, $field)) {
            return $field[$key];
        } else {
            return NULL;
        }
    }

}